<?php
/**
 * Created by PhpStorm.
 * User: wo
 * Date: 2019/11/26
 * Time: 20:06
 */

namespace Home\Model;


use Think\Model;

class WishPayLogModel extends Model
{
    //获取当前人所有的付款记录及后台帮砍金额
    public function getPayLog($wish_id,$type=1){
        return $this->where(array('wish_id'=>$wish_id,'type'=>$type))->field('ifnull(sum(money),0) as smoney')->find();
    }

}